package jy.game.components.wuxue.pojo;


import jy.game.BasePojo;
import jy.game.components.wuxue.JyBuff;
import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.Root;

/**
 * 特殊技能
 */
@Root(name = "special_skill")
public class JySpecialSkill extends BasePojo {
    @Attribute(name = "name") public      String name;
    @Attribute(name = "info") public      String info;
    @Attribute(name = "castsize") public  int    castSize;
    @Attribute(name = "coversize") public int    coverSize;
    @Attribute(name = "audio") public     String audio;
    @Attribute(name = "covertype") public int    coverType;
    @Attribute(name = "animation") public String animation;
    @Attribute(name = "costMp") public    int    costMp;
    @Attribute(name = "cd") public        int    coolDown;
    @Attribute(name = "costball") public  int    costBall;
    @Attribute(name = "hitself") public   int    hitSelfValue = -1;
    @Attribute(name = "buff") public      String buffValue;
    @Attribute public                     String icon         = "";

    // (get) Token: 0x06000559 RID: 1369 RVA: 0x00004E69 File Offset: 0x00003069
    @Override public /*override*/ String getPK() {
        {
            return this.name;
        }
    }

    // (get) Token: 0x0600055A RID: 1370 RVA: 0x00004E71 File Offset: 0x00003071
    public boolean HitSelf() {
        return this.hitSelfValue == 1;
    }

    // (get) Token: 0x0600055B RID: 1371 RVA: 0x00004E7C File Offset: 0x0000307C
    // [XmlIgnore]
    public Iterable<JyBuff> getBuffs() {
        return JyBuff.Parse(this.buffValue);
    }
}
